.media-container {
  display: flex;
  position: relative;
  padding: 20px 0 80px 0;
  height: auto;
  width: 100%;
  flex-direction: column;
  justify-content: center;
}
.media-sub-box {
  display: flex;
  justify-content: center;
}
.mediastyle {
  border-radius: 15px;
  background: var(--item-bg);
  display: flex;
  flex-direction: column;
  padding: 10px 10px 5px 10px;
  margin: 5px;
  border: 2px solid var(--font-color);
  width: 25%;
}
.mediastyle * {
  margin: 5px;
}
h1 {
  text-align: center;
  color: var(--font-color-hover);
  font-size: 26px;
}
.mediastyle .stream-model-box {
  display: flex;
  align-items: center;
  height: 30px;
}
.mediastyle .stream-model-box input[type="radio"] {
  cursor: pointer;
}
.mediastyle .stream-model-box input[type="radio"]:checked {
  background-color: #415da1;
}

.mediastyle .stream-model-box label {
  position: relative;
  cursor: pointer;
}

.mediastyle .stream-box {
  position: relative;
}
.mediastyle .stream-box input {
  width: 100%;
  padding: 10px 0;
  font-size: 16px;
  color: white;
  border: none;
  border-bottom: 1px solid var(--font-color);
  outline: none;
  background: transparent;
}
.mediastyle .stream-box label {
  position: absolute;
  top: 0;
  left: 0;
  padding: 10px 0;
  font-size: 16px;
  color: var(--font-color);
  pointer-events: none;
  transition: 0.5s;
}
.mediastyle .stream-box input:focus ~ label,
.mediastyle .stream-box input:valid ~ label,
.mediastyle .stream-box input:disabled ~ label {
  top: -20px;
  left: 0;
  color: white;
  font-size: 12px;
}

.mediastyle .button-stream {
  width: 140px;
  height: 40px;
  position: relative;
  display: inline-block;
  color: var(--font-color);
  text-decoration: none;
  text-transform: uppercase;
  overflow: hidden;
  letter-spacing: 4px;
  border: 2px solid var(--font-color);
  border-radius: 2px;
  margin-left: auto;
  background-color: var(--item-bg);
}

.mediastyle .button-stream:hover {
  background: #415da1;
  color: #fff;
  border-radius: 5px;
  box-shadow: 0 0 5px #415da1, 0 0 10px #415da1, 0 0 15px #415da1,
    0 0 20px #415da1;
}
.mediastyle .button-stream.active {
  border: 2px solid transparent;
}
.mediastyle .button-stream span {
  position: absolute;
  display: block;
  padding: 0;
  margin: 0;
}

.mediastyle .button-stream.active span:nth-child(1) {
  top: 0;
  left: -100%;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, transparent, #1890ff);
  animation: btn-anim1 1s linear infinite;
}

@keyframes btn-anim1 {
  0% {
    left: -100%;
  }
  50%,
  100% {
    left: 100%;
  }
}

.mediastyle .button-stream.active span:nth-child(2) {
  top: -100%;
  right: 0;
  width: 2px;
  height: 100%;
  background: linear-gradient(180deg, transparent, #1890ff);
  animation: btn-anim2 1s linear infinite;
  animation-delay: 0.25s;
}

@keyframes btn-anim2 {
  0% {
    top: -100%;
  }
  50%,
  100% {
    top: 100%;
  }
}

.mediastyle .button-stream.active span:nth-child(3) {
  bottom: 0;
  right: -100%;
  width: 100%;
  height: 2px;
  background: linear-gradient(270deg, transparent, #1890ff);
  animation: btn-anim3 1s linear infinite;
  animation-delay: 0.5s;
}

@keyframes btn-anim3 {
  0% {
    right: -100%;
  }
  50%,
  100% {
    right: 100%;
  }
}

.mediastyle .button-stream.active span:nth-child(4) {
  bottom: -100%;
  left: 0;
  width: 2px;
  height: 100%;
  background: linear-gradient(360deg, transparent, #1890ff);
  animation: btn-anim4 1s linear infinite;
  animation-delay: 0.75s;
}

@keyframes btn-anim4 {
  0% {
    bottom: -100%;
  }
  50%,
  100% {
    bottom: 100%;
  }
}

.file-box {
  width: 90%;
  height: 180px;
  margin: 10px auto;
  border: 2px dashed var(--font-color);
  position: relative;
}

.mediastyle input[type="file"] {
  position: absolute;
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
  outline: none;
  opacity: 0;
  z-index: 2;
  cursor: pointer;
  left: 0;
}

.preview-image {
  position: absolute;
  width: 100%;
  text-align: center;
  height: 175px;
  line-height: 175px;
  color: var(--font-color);
  margin: 0;
  background-size: 100%;
  background-repeat: no-repeat;
  background-position: center;
}
